import Department from './department';
import LabelGroup from './labelgroup';
import SideMenu from './menu';
import NavTab from './navtab';
import SearchFormInput from './searchforminput';
import PagerTable from './table';
import N9Upload from './upload';
import VfcButton from './vfcButton';
import N9ContextMenu from './contextmenu';
import N9Dialog from './dialog';


const components = [
    Department,
    LabelGroup,
    SideMenu,
    NavTab,
    SearchFormInput,
    PagerTable,
    N9Upload,
    VfcButton,
    N9ContextMenu,
    N9Dialog
];

const install = function(Vue, opts) {
    components.map(component => {
        // Vue.component(component.name, component);
        Vue.use(component);
    });
}

/* 支持使用标签的方式引入 */
/*if (typeof window !== 'undefined' && window.Vue) {
    install(window.Vue);
}*/

export default {
    install,
    // n9,
    // ajax,
    Department,
    LabelGroup,
    SideMenu,
    NavTab,
    SearchFormInput,
    PagerTable,
    N9Upload,
    VfcButton,
    N9ContextMenu,
    N9Dialog
}